home *** CD-ROM | disk | FTP | other *** search
- //-------------------------------------------------
- // Person.h - Interface file for the Person object.
- //-------------------------------------------------
-
- #import <objc/Object.h>
-
- @interface Person : Object
- {
- char *name;
- int age;
- }
-
- // Initialize newly created instance.
- - initWithName:(const char*)aName
- age:(int)anAge;
-
- // Tidy up the instance
- - free;
-
- // Set instance variables.
- - setName:(const char*)aName;
- - setAge:(int)anAge;
-
- // Get instance variable values.
- - (const char*)name;
- - (int)age;
-
- // Print Person info.
- - printInfo;
-
- // Archiving methods.
- - read:(NXTypedStream*)stream;
- - write:(NXTypedStream*)stream;
-
- //-------------------------------------------------
- @end
-
-